package com.pomr.util.communication.cx218;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

import com.alibaba.fastjson.JSONObject;
import com.pomr.util.common.SIMConnection;
import com.pomr.util.communication.CXParam;
import com.pomr.util.communication.Communication;

/**
 * 
 * 类名称： CX218Param
 * 创建人： Administrator
 * 创建时间：2018年5月8日 下午2:36:28
 * 类描述：2.1.8 单卡近 6 个月充值详情接口 入参
 */
public class CX218Param implements CXParam{
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	public String getHmType() {
		return hmType;
	}
	public void setHmType(String hmType) {
		this.hmType = hmType;
	}
	public String getHm() {
		return hm;
	}
	public void setHm(String hm) {
		this.hm = hm;
	}
	public String getAppid() {
		return appid;
	}
	public void setAppid(String appid) {
		this.appid = appid;
	}
	public String getDt() {
		return dt;
	}
	public void setDt(String dt) {
		this.dt = dt;
	}
	private String hmType;//号码类型 imsi、iccid、msisdn
	private String hm;//号码
	private String appid;//用户名
	private String dt;//unix时间戳
	private String createDate;//按照月份查找当月的充值详情
	
	@Override
	public TreeMap toMap() {
		TreeMap<String, String> map = new TreeMap<String, String>();
		map.put(hmType, hm);
		map.put("appid", appid);
		map.put("createDate", createDate);
		this.dt = SIMConnection.Date2TimeStamp();
		map.put("dt", dt);
		return map;
	}
	@Override
	public JSONObject toJson() {
		JSONObject jb = new JSONObject();
		jb.put(hmType, hm);
		jb.put("appid", appid);
		jb.put("createDate", createDate);
		jb.put("dt", dt);
		return jb;
	}
	

}
